import request from '@/utils/request'

/**
 * 查询
 * @returns {AxiosPromise}
 */
export function getList() {
  return request({
    url: '/home-category-img',
    method: 'get'
  })
}

export function updateHomeType(data) {
  return request({
    url: '/home-category-img',
    method: 'put',
    data
  })
}

// 查询类别
export function queryCategory() {
  return request({
    url: 'product-category/getAll',
    method: 'get'
  })
}
